package org.jeecg.modules.oms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 询单明细表
 * @Author: jeecg-boot
 * @Date: 2025-09-29
 * @Version: V1.0
 */
@Data
@TableName("oms_inquiry_item")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="oms_inquiry_item对象", description="询单明细表")
public class OmsInquiryItem implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    
    /**询单ID*/
    @Excel(name = "询单ID", width = 15)
    @ApiModelProperty(value = "询单ID")
    private String inquiryId;
    
    /**询单规则ID*/
    @Excel(name = "询单规则ID", width = 15)
    @ApiModelProperty(value = "询单规则ID")
    private String ruleId;
    
    /**询单规则名称*/
    @Excel(name = "询单规则名称", width = 15)
    @ApiModelProperty(value = "询单规则名称")
    private String ruleName;
    
    /**询单规则值*/
    @Excel(name = "询单规则值", width = 20)
    @ApiModelProperty(value = "询单规则值")
    private String ruleValue;
    
    /**排序号*/
    @Excel(name = "排序号", width = 15)
    @ApiModelProperty(value = "排序号")
    private Integer sortNo;
    
    /**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private String tenantId;
    
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    
    /**删除状态：0-正常，1-已删除*/
    @TableLogic
    @ApiModelProperty(value = "删除状态：0-正常，1-已删除")
    private Integer delFlag;
}
